{
  "properties" : { },
  "id" : "145cadd13b5044edb5f6fc8bd303237b",
  "script" : null,
  "groupId" : "20d1495b5a3248699326d07bf7f27537",
  "name" : "1.获取token",
  "createTime" : null,
  "updateTime" : 1735807791296,
  "lock" : null,
  "createBy" : null,
  "updateBy" : null,
  "path" : "/tokens",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"uuid\": \"token123456\",\n    \"userType\": 38,\n    \"expire\": 1000,\n    \"passwordExpireAfter\": \"90\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : {
    "name" : "",
    "value" : "",
    "description" : "",
    "required" : false,
    "dataType" : "Object",
    "type" : null,
    "defaultValue" : null,
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ {
      "name" : "timestamp",
      "value" : "2024-12-24T08:47:49.483+00:00",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "status",
      "value" : "404",
      "description" : "",
      "required" : false,
      "dataType" : "Integer",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "error",
      "value" : "Not Found",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "message",
      "value" : "",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    }, {
      "name" : "path",
      "value" : "/conf-portal/token",
      "description" : "",
      "required" : false,
      "dataType" : "String",
      "type" : null,
      "defaultValue" : null,
      "validateType" : "",
      "error" : "",
      "expression" : "",
      "children" : [ ]
    } ]
  }
}
================================

import 'java.util.Date' as Date;
import 'java.text.SimpleDateFormat' as SimpleDateFormat;
// 
var token_meeting_json = """
{
  "uuid": "token123456",
  "userType": 38,
  "expire": 1000,
  "passwordExpireAfter": "90"
}
"""

import response;
import 'com.fasterxml.jackson.databind.ObjectMapper' as ObjectMapper;
var objectMapper = new ObjectMapper();
var token = objectMapper.readValue(token_meeting_json, Map.class);
var now = new Date();   // 创建对象
var df = new SimpleDateFormat('yyyy-MM-dd');
// df.format(val);

// 返回带有固定的返回体方式， code，message，data
// return token;  // 调用方法

// 返回格式自定义
return response.json({
  "uuid": "token123456",
  "userType": 38,
  "expire": 1000,
  "passwordExpireAfter": "90"
})